package com.ruoyi.common.enums;



public enum FlightPathTypeEnum {
    JC(1, "舰船","J_KY_S_AISDTXX","mmsi","id, mmsi, zt, jzsj, jd, wd, dlzb, hs, hx, sfyggzt, qxzt, sfwcycztc, sfwckztc, sfwcskccy, dqzt"),
    FJ(2, "飞机","J_KY_S_ADSDTXX","icao","id, icao, zt, jzsj, jd, wd, dlzb, hs, hx, sfyggzt, qxzt, sfwcycztc, sfwckztc, sfwcskccy, dqzt,jhgd");

    private Integer code;
    private String desc;
    private String dynamicsTableName;
    private String mmsiIcao;
    private String dynamicsField;

    FlightPathTypeEnum(Integer code, String desc, String dynamicsTableName, String mmsiIcao, String dynamicsField) {
        this.code = code;
        this.desc = desc;
        this.dynamicsTableName = dynamicsTableName;
        this.mmsiIcao = mmsiIcao;
        this.dynamicsField = dynamicsField;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }


    public String getDynamicsTableName() {
        return dynamicsTableName;
    }

    public void setDynamicsTableName(String dynamicsTableName) {
        this.dynamicsTableName = dynamicsTableName;
    }

    public String getMmsiIcao() {
        return mmsiIcao;
    }

    public void setMmsiIcao(String mmsiIcao) {
        this.mmsiIcao = mmsiIcao;
    }

    public String getDynamicsField() {
        return dynamicsField;
    }

    public void setDynamicsField(String dynamicsField) {
        this.dynamicsField = dynamicsField;
    }

    public static FlightPathTypeEnum getByCode(Integer code){
        for (FlightPathTypeEnum enums : FlightPathTypeEnum.values()) {
            if (enums.getCode().equals(code)) {
                return enums;
            }
        }
        return null;
    }
}
